package com.mz.mattress.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mz.mattress.api.entity.MerchantGrade;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface MerchantGradeMapper extends BaseMapper<MerchantGrade> {

    @Select("select * from mz_merchant_grade where level=#{level} and deleted=0 limit 1")
    MerchantGrade selectByLevel(@Param("level") Integer level);

}
